//
//  ZYXViewController.m
//  OCUIAdvanced
//
//  Created by zhaoyingxin on 15/4/2.
//  Copyright (c) 2015年 solozyx.com. All rights reserved.
//

#import "ZYXViewController.h"

@interface ZYXViewController ()

@end

@implementation ZYXViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	
    self.view.backgroundColor = [UIColor purpleColor];
    
    UISwitch *s = [[UISwitch alloc] init];
    CGPoint tempCenter = s.center;
    tempCenter.x = 100;
    tempCenter.y = 100;
    s.center = tempCenter;
    
    [self.view addSubview:s];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
